package com.redwine.app.net.responses;

/**
 * 作者：gassion on 17/8/23 12:30
 * 最可怕的敌人，就是没有坚强的信念。
 */

public class SendMsgEvent {

    //刷新首页数据
    public static final int REFURBISH_MAIN_DATA = 1;
    //刷新消息数据
    public static final int REFURBISH_MESSAGE_DATA = 9;
    //刷新个人中心头像
    public static final int REFURBISH_PHPTO_DATA = 3;
    //关闭供应商认证
    public static final int CLOSE_ACTIVITY = 2;
    //刷新我的收藏
    public static final int REFURBISH_MY_COLLECTION = 4;
    //刷新收货地址
    public static final int REFURBISH_SHIPPING_ADDRESS = 5;
    //刷新货源列表
    public static final int REFURBISH_PUBLISHDE_LIST = 6;
    //退出账户
    public static final int EXIT_ACCOUNT = 7;
    //刷新供应商详情数据
    public static final int REFURBISH_PROCUREMENT_DETAIL_DATA = 8;

    private String sendMsg;
    private int sendType;
    private String[] array;

    /**
     * 传递string字符串
     *
     * @param sendMsg
     */
    public SendMsgEvent(String sendMsg) {
        this.sendMsg = sendMsg;
    }

    public SendMsgEvent(String[] array) {
        this.array = array;
    }

    /**
     * 传递int值
     *
     * @param sendType
     */
    public SendMsgEvent(int sendType) {
        this.sendType = sendType;
    }


    public SendMsgEvent(int sendType, String sendMsg) {
        this.sendType = sendType;
        this.sendMsg = sendMsg;
    }

    public String[] getArray() {
        return array;
    }

    public void setArray(String[] array) {
        this.array = array;
    }

    public String getMsg() {
        return sendMsg;
    }

    public int getSendType() {
        return sendType;
    }
}
